(function ($) {
  Drupal.behaviors.aia_region = {
    attach: function(context, settings) {

      $('#aia_region .region', context).click(function () {
        $.cookie('aia_region', $(this).attr('rid'), {
          path: '/',
          expires: 365
        } );
        location.reload();
      });

    }
  };
})(jQuery);